Problem Note 41476: Microsoft Excel variables with trailing spaces might import incorrectly with the XLS engine and other engines in UNIX environments
In UNIX environments, Excel variable names can be incorrectly imported when the variable names have trailing spaces and you use the XLS engine or other engines. The second variable will contain the name of the first variable, as shown in the following example:
NOTE: Variable Name Change. Cust_Num Column_A -> Cust_Num_Column&$95;A
NOTE: Variable Name Change. Column&$95;B -> Column_B-Column_A
NOTE: The import data set has 1 observations and 2 variables.
NOTE: WORK.FRED data set was successfully created.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.13 seconds
cpu time 0.02 seconds
In this example, the Column_A name merges with Column&$95;B.
To circumvent the problem do one of the following:
- Remove the trailing spaces in Excel variables before you import them.
- Use the SAS PC Files Server and the EXCELCS engine to import the files.
- Save the Excel file as a tab-delimited text file and use the DBMS=TAB option to import the file.
Click the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | 64-bit Enabled AIX | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled HP-UX | 9.2 TS2M0 | 9.3 TS1M0 |
64-bit Enabled Solaris | 9.2 TS2M0 | 9.3 TS1M0 |
HP-UX IPF | 9.2 TS2M0 | 9.3 TS1M0 |
Linux | 9.2 TS2M0 | 9.3 TS1M0 |
Linux for x64 | 9.2 TS2M0 | 9.3 TS1M0 |
Solaris for x64 | 9.2 TS2M0 | 9.3 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Variables with trailing spaces might import incorrectly as merged variables in UNIX environments. To circumvent the problem, remove the trailing spaces in the variable names.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2010-11-03 09:43:16 |
Date Created: | 2010-11-01 17:18:11 |